var handler = {}
var factorial = function(x) { 
	if(x <= 1) return 1;
	return arguments.callee(x-1) * x;
};

console.log(factorial(3));

console.log(process.argv.slice(2));

function test() {
    var index = 0;
    handler.hehe = () => {
        console.log('--index:%d', index);
    }
    return () => {index++;};
}

var count = test();
var a = setInterval(() => {
    handler.hehe();
    count();
}, 100);

setTimeout(() => {
    clearInterval(a);
}, 1000);
